package com.maduar.batch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maduar.batch.entity.Myuser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Description:
 *
 * @Author maduar maduar@163.com
 * @Date 2021-08-19 21:17
 */
@Repository
public interface UserMapper extends BaseMapper<Myuser> {
    // ${ew.customSqlSegment} 分页条件

    @Select("SELECT count(*) FROM myuser where name = #{name} ")
    Long countName(String name);
}
